home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
ai
/
bpnn133u
/
nnerror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-18
|
918b
|
37 lines
/*
*----------------------------------------------------------------------------
* file: nnerror.c
* desc: define all errors
* by: patrick ko
* date: 2 aug 91
*----------------------------------------------------------------------------
*/
#include "nnerror.h"
struct error {
int error;
char *errmsg;
};
static struct error errtbl[] =
{
{ NNMALLOC, "malloc error" },
{ NNTFRERR, "train file reading error" },
{ NNRFRERR, "recognition file reading error" },
{ NNTFIERR, "train file input error" },
{ NNIOLAYER, "input/output layer must be specified first" },
{ NN2MANYLAYER, "hidden layer more than specified" },
{ NN2FEWPATT, "no training pattern" },
{ NN2MANYHIDDEN,"too many hidden layers specfied" },
{ NNOUTNOTOPEN, "output file cannot be opened" }
};
int error( errno )
int errno;
{
printf( "nnerror %d: %s\n", errno, errtbl[errno].errmsg );
exit (errno);
}